package com.gscitysfy.cus.drain.modules.reserveplan.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 预警等级对应的划分标准和响应机制信息表
 * </p>
 *
 * @author shenglin
 * @since 2022-11-15 14:28:05
 */
@Getter
@Setter
@TableName("drain_reserve_plan_level_response")
public class DrainReservePlanLevelResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键,预案id
     */
    @TableId
    private Long cmKid;


    /**
     * 预警等级1级,划分标准code
     */
    private String levelOnStadCode;

    /**
     * 预警等级2级,划分标准code
     */
    private String levelTwStadCode;

    /**
     * 预警等级3级,划分标准code
     */
    private String levelThStadCode;

    /**
     * 预警等级4级,划分标准code
     */
    private String levelFoStadCode;

    /**
     * 预警等级1级响应机制
     */
    private String levelOnResponse;

    /**
     * 预警等级2级响应机制
     */
    private String levelTwResponse;

    /**
     * 预警等级3级响应机制
     */
    private String levelThResponse;

    /**
     * 预警等级4级响应机制
     */
    private String levelFoResponse;

    @TableField(fill = FieldFill.INSERT)
    private String cmCreator;

    private String cmModifier;

    private String cmOrgflag;

    private Long cmRegflag;

    private String cmTenantid;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmAddtime;

    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cmUptime;

    private Long cmVersion;

    @TableField(fill = FieldFill.INSERT)
    private Boolean cmUsable;


}
